package com.team.register.pojo;

import java.io.Serializable;

/**
 * @Program: clps-learning
 * @Description:
 * @author: Cooper
 * @date: 2021.10.12
 * @Version: 1.0
 */
public abstract class BaseUser implements Serializable {
    private String username;
    private String password;
    private Integer role;

    public BaseUser(String username, String password, Integer role) {
        this.username = username;
        this.password = password;
        this.role = role;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "BaseUser{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                '}';
    }
}
